home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Includes / PedAgent.hh < prev    next >
Encoding:
Text File  |  2000-06-24  |  547 b   |  35 lines

  1. /*    ===========
  2.  *    PedAgent.hh
  3.  *    ===========
  4.  *
  5.  *    Implemented by PedAgent.cc
  6.  */
  7.  
  8. #pragma once
  9.  
  10. #include <Events.h>
  11.  
  12. #include "PedTask.hh"
  13.  
  14. class PedWindow;
  15.  
  16. class PedAgent : public PedTask {
  17. public:
  18.     PedAgent(PedTask *inParent);
  19.     virtual ~PedAgent();
  20.     
  21.     virtual void InitWindow();
  22.     virtual PedWindow *Window();
  23.     virtual void SetWindow(PedWindow *inWindow);
  24.     
  25.     virtual bool OpenWindow();
  26.     virtual bool CloseWindow();
  27.     
  28.     // Event processing
  29.     virtual void ProcessKey(EventRecord &inEvent) {}
  30.     
  31. protected:
  32.     PedWindow *mWindow;
  33.     bool mPersistent;
  34. };
  35.